package com.baidu.fsg.uid.annotation;

import com.baidu.fsg.uid.config.IdMappingDeserialize;
import com.baidu.fsg.uid.config.IdMappingSerializer;
import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
@JacksonAnnotationsInside
@JsonSerialize(using = IdMappingSerializer.class)
@JsonDeserialize(using = IdMappingDeserialize.class)
public @interface IdMapping {

}